Skip to main content
Version: 1.0.2

Transaction Logs

The Transaction Logs API is used to retrieve transaction logs. By invoking this API, users can obtain a comprehensive record of transaction activity for a wallet account.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

asset

Mandatory

String

The asset code representing the specific asset involved in the transaction logs.

Ex: ""

pubkey

Mandatory

String

The public key associated with the wallet account for which the transaction logs are being retrieved.

Ex: "GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ"


curl --location '{{url}}/rpc/WalletService/TransactionLogs' \
--header 'DiviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==' \
--data '{"asset":"","pubkey":"GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ"}'

Body


{
"asset": "",
"pubkey": "GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ"
}

Response: 200

Response Parameters
ParameterDescription

amount

Number

The amount of the transaction.

Ex: 20000000

assetCode

String

The code or symbol representing the asset involved in the transaction.

Ex: "SRT"

assetIssuer

Number

The issuer's public key for the asset involved in the transaction.

Ex: "GCDNJUBQSX7AJWLJACMJ7I4BC3Z47BQUTMHEICZLE6MU4KQBRYG5JY6B"

destination

String

The public key of the destination account for the transaction.

Ex: "GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ"

source

String

The public key of the source account for the transaction.

Ex: "GCSGSR6KQQ5BP2FXVPWRL6SWPUSFWLVONLIBJZUKTVQB5FYJFVL6XOXE"

hash

String

The hash value representing the transaction.

Ex: "c194e0a5e3413820c0d267723cc6c59529c84274433a2b7d9c38c89bac928240"

baseFee

Number

The base fee charged for the transaction.

Ex: 1000

createdAt

String

The date and time when the transaction was created.

Ex: "2023-06-26T12:34:39Z"


[
{
"amount": 20000000,
"assetCode": "SRT",
"assetIssuer": "GCDNJUBQSX7AJWLJACMJ7I4BC3Z47BQUTMHEICZLE6MU4KQBRYG5JY6B",
"destination": "GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ",
"source": "GCSGSR6KQQ5BP2FXVPWRL6SWPUSFWLVONLIBJZUKTVQB5FYJFVL6XOXE",
"hash": "c194e0a5e3413820c0d267723cc6c59529c84274433a2b7d9c38c89bac928240",
"baseFee": 1000,
"createdAt": "2023-06-26T12:34:39Z"
},
{
"amount": 10000000,
"assetCode": "SRT",
"assetIssuer": "GCDNJUBQSX7AJWLJACMJ7I4BC3Z47BQUTMHEICZLE6MU4KQBRYG5JY6B",
"destination": "GAJXAOV5NKLL634G53YBDW4BZZIP6CF3AD2OJEPVILIMB2CYEWKXOVOQ",
"source": "GCSGSR6KQQ5BP2FXVPWRL6SWPUSFWLVONLIBJZUKTVQB5FYJFVL6XOXE",
"hash": "064a5d66583e0c3784cca7267a3e2a4319e9f716946cee5c21352f0e5fc26a3e",
"baseFee": 1000,
"createdAt": "2023-06-26T09:27:05Z"
},
]